package pers.flowerinsnow.minecraft.minecraftkotlin.forge

import net.minecraftforge.fml.common.Mod
import net.minecraftforge.fml.common.event.FMLInitializationEvent
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent
import org.apache.logging.log4j.core.Logger

@Mod(modid = MinecraftForgeKotlin.MODID, version = MinecraftForgeKotlin.VERSION)
class MinecraftForgeKotlin {
    @Mod.EventHandler
    fun preInit(event : FMLPreInitializationEvent) {
        logger = event.modLog as Logger
        logger.info("mod成功加载")
    }
    @Mod.EventHandler
    fun init(event: FMLInitializationEvent) {

    }
    @Mod.EventHandler
    fun postInit(event : FMLPostInitializationEvent) {

    }

    companion object {
        const val MODID = "minecraftkotlin"
        const val VERSION = "1 Beta"
        lateinit var logger : Logger
            private set
    }
}
